Skip to content

runtime_common: always use memcpy in STORE_PTR#4900

Open
sjamesr wants to merge 1 commit intobytecodealliance:mainfrom
sjamesr:use_memcpy
Open

runtime_common: always use memcpy in STORE_PTR#4900
sjamesr wants to merge 1 commit intobytecodealliance:mainfrom
sjamesr:use_memcpy

Conversation

@sjamesr
Copy link
Copy Markdown
Contributor

@sjamesr sjamesr commented Apr 2, 2026

This is one of the many causes of unaligned load warnings in -fsanitize=alignment. memcpy should always be OK: on architectures where unaligned stores are OK, this will turn into a single move.

This was discussed back in 2024 in #2349. It seems as though the consensus at the time was to use memcpy, but I don't know if any changes were made after that.

What do you think?

This is one of the many causes of unaligned load warnings in
-fsanitize=alignment. memcpy should always be OK: on architectures where
unaligned stores are OK, this will turn into a single move.

This was discussed back in 2024 at
bytecodealliance#2349.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant